<template>
	<view class="container">
		<rich-text :nodes="htmls | htmlFormat"></rich-text>
	</view>
</template>

<script>
	import { about} from '@/api/user.js'
	import graceRichText from '@/utils/rechText.js'
	export default {
		data() {
			return {
				htmls:""
			};
		},
		filters: {
			htmlFormat(str) {
				return str ? graceRichText.format(str) : ''
			}
		},
		onLoad() {
			about().then(res => {
				this.htmls = res.dataid
			})
		}
	}
</script>

<style lang="scss" scoped>
.container{
	padding: 20rpx;
}
</style>
